fix sorting by wp id not displayed in modal

[``* `#15606` sorting by wp id not displayed in modal``](http://www.openproject.org/work_packages/15606)
Use the new Ruby 1.9 hash syntax.