I am new to python and hoping that someone can help me out with this. I need to sort a list of strings :
s = ['status', 'value', 'place', 'tag']
I need to sort in such a way that the sorted list looks like this :
s_sorted = ['tag', 'place', 'status', 'value']
In order words, the specific string 'tag'
needs to be always in front and the rest of the strings are going to be sorted. I was trying to come up with a comparator that will allow me to do so. But I haven't been able to do that so far. If anyone has experience solving problem like this, I would appreciate if you can share some thoughts.