take "order" option into account before rendering sort buttons