Hello,
this is not available natively in Robot Framework.
You will have to implement it in your own library.
I found a possible implementation in Stack Overflow:
http://stackoverflow.com/questions/10269701/case-insensitive-list-sorting-without-lowercasing-the-resultHere is how it would work in Robot:
1) create a lib.py file:
def custom_sort(list):
return sorted(list, key=lambda s: s.lower())
2) use this lib in your test:
*** Settings ***
library lib
library Collections
*** test cases ***
test
${list} = create list Aden benjamin abel
${custom_sorted_list} = custom_sort ${list}
sort list ${list}
log to console \n${list}
log to console \n${custom_sorted_list}
3) if you run this test, you will get:
MBP]$ pybot ts.txt
==============================================================================
Ts
==============================================================================
test ...
[u'Aden', u'abel', u'benjamin']
[u'abel', u'Aden', u'benjamin']
test | PASS |
Which is what you are looking for I think.
Hope this helps,
Laurent Bristiel