changed sorting direction