Added function to sort collection (annotations), improvement to creation of collection from a page