In a struggle to have the posts on my category pages listed by custom field I tried the following code (based on Displaying_Posts_Using_a_Custom_Select_Query).
1. It sorts the entries by date anyway :-(
2. It does not respect the chosen category (i.e. dispalys all posts)
The second time I approach this problem and again it outwits me. Help please!
[moderated: code pasted at http://wordpress.pastebin.ca/548100 ]
To see the script in action go to: