fixed ordering by complex fields