correctly sort infinality stuff