Fixed sort by post rank issue

Fixed sort by post rank issue
Merge pull request #1 from Codeinwp/development

Fixed sort by post rank issue