Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Talk:Record sorting in RMS
For those familiar with how sorting works in Java SE, this will be a very familiar concept. The code example is kept nice and simple. It shows both how to instantiate a sorted RecordEnumeration and how to implement the RecordComparator interface (through the compare method). The entire process is also shown in a complete code example, showing the process from start to finish.
One relatively minor criticism I have of this article is that it does not show how the compare method should be implemented differently if the programmer desires the records to be sorted in descending order as opposed to ascending order. This is a simple matter of swapping the PRECEDES and FOLLOWS return values.