fix payments sorting