Hi @imran_raj1985
You need to first sort your elements by X and Y and then rename them. Below is an example.