Added facility to sort and arrange annotations