fixed tags sorting backwards