custom sort

Would be really useful if you could sort by custom fields too eg. I have a custom post type "event" and it would be great to be able to sort by event date rather than post date!