Got sorting working. Displaying fine.