Re-fixed division sorting issue