The PBP suggests using a module called Sort::Maker to build powerful sort functions without getting hung up in the details and possibly messing up the implementation.
This introduces the Sort::Maker module, which I never used before, but it sure looks neat, and gives you a simple way to write powerful sort functions and eliminates the worry of implementation problems. It reminds me of Moo or Moose, but for sorts instead of OO.
Sounds great, and I’ll be trying to work it in to my usual work pattern.