#272 Implemented sorting of region contents