fixed lengthsort