Glossary: Data Structures and Algorithms in Java
natural order
The way a type sorts itself by default, such as numbers smallest first and strings alphabetically. `list.sort(null)` and a `PriorityQueue` with no comparator use it.
Glossary: Data Structures and Algorithms in Java
The way a type sorts itself by default, such as numbers smallest first and strings alphabetically. `list.sort(null)` and a `PriorityQueue` with no comparator use it.