sort icons before adding to sprite