[COOK-3224] Fix template crashing due to non-existent sort operator

Signed-off-by: Seth Vargo <sethvargo@gmail.com>