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

Chef::Node on 11.4.4 doesn't have the sort operator, causing the
template to crash with "comparison of Chef::Node with Chef::Node failed"