There's an option to use /filter to sort numbers, but why isn't there an option to sort by Size ?
For example, if you have a list in a dialog that contains file sizes, and you want it sorted.
I use "/filter -a" and an alias I've made to sort the file sizes, but I don't see why there shouldn't be a built in options for that.
This is the alias I've made (for example):
alias sortbysize {
if ($2 = n/a) return 1
if (b !isin $2) && (K !isin $2) && (M !isin $2) && (G !isin $2) return 1
if ( ((k !isin $2) && (m !isin $2) && (g !isin $2)) && (B isin $2) ) && ( ((k isin $1) || (m isin $1) || (g isin $1)) && (B !isin $1) ) return 1
if (k isin $1) && (m isin $2) return -1
if (m isin $1) && (G isin $2) return -1
if (m isin $1) && (k isin $2) return 1
if (g isin $1) && ( (m isin $2) || (k isin $2) ) return 1
if ((K isin $1) && (K isin $2)) || ((M isin $1) && (M isin $2)) || ((G isin $1) && (G isin $2)) || $&
( ( ((K !isin $1) && (K !isin $2)) && ((M !isin $1) && (M !isin $2)) && ((G !isin $1) && (G !isin $2)) ) && (b isin $1) && (b isin $2) ) {
tokenize 32 $calc($remove($1,G,K,M,b)) $calc($remove($2,G,K,M,b))
if ($1 !isnum) return 1
return $iif($2 > $1,-1,$iif($1 > $2,1,0))
}
return -1
}