sort languages based on code