sorting depending on name-settings