Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorUtility.NaturalCompare

Switch to Manual
public static function NaturalCompare(a: string, b: string): int;

Parameters

Description

Human-like sorting.

Sorts strings alphabetically, but with numbers in strings numerically, so "xx11" comes after "xx2".