Add order by custom field

Added option to order using a custom field (meta) value.