grid sorting, state info flow