AnsweredAssumed Answered

what is the best way to sort a list in automic?

Question asked by RmSchwrzntrbr on Sep 3, 2018
Latest reply on Sep 3, 2018 by FrankMuffke

I process a list of files, where the the order is somewhat arbitrary...

/upload/outgoing/BANK_IBT_CH9995723218_2018-08-22-111143.xml
/upload/outgoing/BANK_IBT_CH9995723218_2018-08-22-122143.xml
/upload/outgoing/BANK_IBT_CH9995723218_2018-08-22-123123.xml
/upload/outgoing/BANK_IBT_CH9995723218_2018-08-22-193153.xml
/upload/outgoing/BANK_IBT_CH9995723218_2018-08-22-023142.xml
/upload/outgoing/BANK_IBT_CH9995723218_2018-08-22-123143.xml
/upload/outgoing/BANK_IBT_CH9995723218_2018-08-22-123127.xml

:  set &FILELIST_CNT# = 0
:  set &HND# = prep_process_report(,&RID#,'REP','/*')
:  process &HND#
:    set &FILE# = get_process_line(&HND#)
:    set &TMP_POS# = str_find_rev(&FILE#,'/')
:    set &TMP_POS# = &TMP_POS# + 1
:    set &FILE# = STR_CUT(&FILE#,&TMP_POS#)
:    set &FILE# = str_trim(&FILE#)
:    print "FILE: &FILE#"
:  endprocess
:  close_process &HND#

what is the best way, to sort them as ascending (like the unix command (sort -f) in Automic.

I would like to process this sorted list...

Outcomes