Alphanumeric sorting of inputs & outputs in GUI

Also some js code formatting