Fixed search function and tests - strange reordering of table data happens only on chrome, not sure why