Sort the inputs in the following order:

- java
- scala
- everything else alphabetic