add sorting for guests table