matethurzo/liferay-portal — pull request #715 by lipusz (2014-03-31 09:19:07+00:00)
Title: [TECHNICAL SUPPORT | March 4] LPS-44269 Wrong page order after publishing to Live

https://issues.liferay.com/browse/LPS-44269

Hey Máté,

I've asked Norbi to add some comments to the code to make the review easier. Feel free to delete the last 2 commits in case if you think they are useless.
Regarding the usage of NavigableSet & SortedSet: as they are part of the standard Collections Framework, I cannot see any cons not to use them.

I've tested Norbi's changes with different scenarios (multi-level layout tree, delete missing pages etc.), and have not got any errors.

Let us @NorbertKocsis know about your concerns.

Regards,
Tibor