Fixed sort order validation. Closes #100
Allow sorting by PID. Closes #158