Added sort logic
Clean up sort logic
Add a way to only run path actions based on the method
NPE
Added get Page type
Merge branch 'origin/dev'