Can Custom Fields be used to sort listings?

Can Custom Fields be used to sort listings?

If so, how?