taking ordering preferences into account