Implemented a faster page sorting for language trees