finished the sorting by swiping and showing the correct icons