Are you sure that the above sorting functions are only used through this line? Otherwise, you could be breaking something else. I kinda doubt that they are, but you should probably make sure.