Make Script.sort chainable
Add sorting test files
Add script sorting test