Take aliased fields into account when sorting entries