fix chain sorting for tau