jodd-db/src/main/java/jodd/db/oom/DbEntityColumnDescriptor.java
@Override
	public int compareTo(final Object o) {
		DbEntityColumnDescriptor that = (DbEntityColumnDescriptor) o;
		if (this.isId != that.isId) {
			return this.isId ? -1 : 1;      // IDs should be the first in the array
		}
		return this.columnName.compareTo(that.columnName);
	}
@Override
	public int compareTo(final Object o) {
		DbEntityColumnDescriptor that = (DbEntityColumnDescriptor) o;
		if (this.isId != that.isId) {
			return this.isId ? -1 : 1;      // IDs should be the first in the array
		}
		return this.columnName.compareTo(that.columnName);
	}
Compares two column descriptors. Identity columns should be the first on the list.
Each group then will be sorted by column name.