fixed lst_sort