Sort cells when they enter backend