qsort hsort expression calculation