svn path=/trunk/; revision=184
case "$order" in
Name)
find -L "$dir" -mindepth 1 -maxdepth 1 -type d \! -name ".index" -print0 \
- | sort -z \
+ | sort -fz \
| xargs -0 printf 'directory %s\n'
find -L "$dir" -mindepth 1 -maxdepth 1 \! -type d -print0 \
| grep -ziE "$file_pattern" \
- | sort -z \
+ | sort -fz \
| xargs -0 printf 'video %s\n'
find -L "$dir" -mindepth 1 -maxdepth 1 \! -type d -print0 \
| grep -zviE "$file_pattern" \
- | sort -z \
+ | sort -fz \
| xargs -0 printf 'plain %s\n'
;;
Date)
case "$order" in
Date) find "${_DATA}"/videos/ -maxdepth 1 -mindepth 1 -printf '%T@ %f\n' |sort -r |cut -d\ -f2- |egrep -i "$file_pattern";;
Length) sed -sn 1p "${_DATA}"/meta/*.meta |sort -n |sed -r 's;^[0-9\t]+\t;;';;
- Name) find "${_DATA}"/videos/ -maxdepth 1 -mindepth 1 -printf '%f\n' |sort |egrep -i "$file_pattern";;
+ Name) find "${_DATA}"/videos/ -maxdepth 1 -mindepth 1 -printf '%f\n' |sort -f |egrep -i "$file_pattern";;
esac
}