fix sorting by wp id not displayed in modal