Method CompareByFileName
CompareByFileName(string, string)
Compares two specified paths by file name and returns an integer that indicates their relative position in the sort order.
public static int CompareByFileName(string x, string y)
Parameters
Returns
- int
A 32-bit signed integer that indicates the relationship between the two comparands. Result value less than 0 means that
x
precedesy
in the sort order. Result value equal to 0 meansx
occurs in the same position asy
in the sort order. Result value greater than 0 means thatx
followsy
in the sort order.