Seting values to elements in schedule

Hello! Almost month ago i started thread on forum about sorting and grouping for elements, since then i tried many ways to renumber elements Renumber assembly elements - #5 by temapavluchenko
But i can sort elements the exact way i need in schedule so i trying to set value in schedule cell, instead of collecting filter and sort elements from model
EDIT: its not the first time i have need in this type of operation. First time for renumber elements is assembly and second to mark hundred of rebar types