improve: cas unsensitive sort; add: repeat one mode; add: cookies