sorting is now happening correctly, by integer