updateFan-inCell (circCell) {
   while (there is a fan-in cell of circCell that has not been visited) {
        if (the current fan-in cell is not ordered) {
            updateFan-inCell (fan-inCell) } }
   set circCell ordered;
   insert circCell at the end of the ordered list;
}
Algorithm 3: Pseudocode of the cell sorting algorithm.