Allow using meta_value_num with resource orderby

Part of #5720