Compares two extensions (or their controllers) by weight, highest first, then by alias, so extensions with equal weights always get the same order.
The first extension.
The second extension.
A negative number when a sorts first, a positive number when b sorts first, otherwise 0.
a
b
Compares two extensions (or their controllers) by weight, highest first, then by alias, so extensions with equal weights always get the same order.