[1655] changed case sorting (open cases before, closed)