svn path=/trunk/; revision=193
genlist(){
case "$order" in
Date)
- find "${_DATA}"/videos/ -maxdepth 1 -mindepth 1 -printf '%T@ %f\n' \
- | sort -r \
- | cut -d\ -f2- \
+ find "${_DATA}"/videos/ -maxdepth 1 -mindepth 1 -printf '%i\t%p\n' \
+ | sort -n \
+ | while read i file; do printf '%s\000' "$file"; done \
+ | xargs -0 stat -c '%Y %n' \
+ | sort -nr \
+ | cut -f2- \
+ | sed 's;^.*/;;g;' \
| egrep -i "$file_pattern"
;;
Length)