New ordering algorithm in progress