Test and fix for ordering with belongsTo includes