add a secondary meta key for sorting

Unless otherwise specified, all code here is licensed GPLv2