Adding documentation on sorting