bugfixes for sorting, adding \***{***}