Sorting an Interactive Table by Array Index

I want to create a list of items scanned on a table sorted by array index. I was able to do so using a filter, but I am unable to sort by array index. Would anyone be able to help me with this?

Is the data in an object list or in tables data?

Actually, I figured out a way by giving each item an index as it is being scanned to the item table. Then I used a sorting feature to display the order on a table.