list by creation date

This commit is contained in:
Serghey Rodin 2015-07-01 01:34:06 +03:00
commit 21c44a8ab9
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ source $VESTA/func/main.sh
# Json function
json_list_ips() {
echo '{'
ip_list=$(ls $VESTA/data/ips/)
ip_list=$(ls --sort=time $VESTA/data/ips/)
fileds_count=$(echo "$fields" | wc -w)
for IP in $ip_list; do
ip_data=$(cat $VESTA/data/ips/$IP)