Sorting collections is a common task in any application. With Immutable.js, sorting collections results in a new collection because nothing can change. Collections in Immutable.js provide us with a number of tools to handle sorting collections. In this chapter, we'll learn about the following:
- Basic sorting and reversing capabilities of collections
- Advanced sorting abilities with complex sort conditions
- The difference between ordered maps and sorting map values
- Maintaining the sort order of collections