fixes #6234 - fixes sorting on compute resources and subnets