Implement tiered sorting for case details

Add the functionality for tiered sorting to apps on version 2.2 or
greater.