Sort the language codes in json output