added hidden fields with selector and somehow sorting works now