Improve cljs file support and sort by namespace

See individual commit messages for rationale.