improved sorting for standards api endpoint