I have a custom post type called "books".
This post type has a custom field called "release-date" that contains a unix timestamp.
I'm working on WordPress archive.php page to have a list of books and I'm trying to alterate the main query.
What I need is to have only books with release-date > today and sorted by release-date.
This is what I try to sort it:
global $query_string;
query_posts( $query_string . "&meta_key=release-date&orderby=meta_value_num&order=ASC&posts_per_page=9" );
The sorting seems not working as expected.