Changed sort to only handle integer arrays, In order for me to do it with generic lists, I need to implement iterators