fixed bug with do-not-sort option