Update orderBy.js

Removed unnecessary additional conditional statement.