AVEVA. PDMS.PML. Sort explorer using txt

Its possible to sort CE members by txt file(C:\array.txt) list, using this script:

!stringPath = ‘C:\array.txt’
!objectFilePath = object FILE(!stringPath)
!lines = !objectFilePath.readFile()
if( !lines.size() eq 0)then
return
endif
do !line from 2 to !lines.size() – 1
if(!lines[!line] ne ”) then
!realLine = !line – 1
reorder $!lines[$!line] after $!lines[$!realLine]
handle any
endhandle
endif
enddo

Video manual: