Documentation

Unity Engine

Unity Engine

NaturalCompare(string, string)

Human-like sorting.
Read time 1 minuteLast updated 9 hours ago

Definition

public static int NaturalCompare(string a, string b)

Parameters

Returns

Type

Description

int

Remarks

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