mostly working but not updating order when sort