Ensure proper sorting for aliases and remove quotes from entry names