contineu bug fix and added another test with sort order