Need sorting method which can sort list containing alphanumeric and special character both and also it should consider special character sorting

Need sorting method which can sort list containing alphanumeric and special character both and also it should consider special character sorting.

Hi Krishna,

The Sort List keyword i mentioned previously just calls the default .sort() method on a list (python list)

If you just want to change the sort direction you can use the Evaluate keyword something like this:

${sorted}=    Evaluate    ${yourlist.sort(reverse=True)}

If you need a custom sort method, you’ll probably need to write one in python code, this might help on how to use the Python List sort() Method

Also you’ll probably want to refer to Creating keywords for creating python keywords for robot framework.

Hope that helps,

Dave.

2 Likes