Gravity/Bead Sort in Java

Learn about the gravity sort (a.k.a. bead sort) algorithm and understand its single-threaded implementation in Java.

Case Insensitive Sorting in MongoDB

MongoDB’s default lexical sorting may not be suitable for all purposes. Here we look at a couple of techniques for sorting to keep letters together even if they’re in a mix of upper and lowercase.