Can someone help me to sort this variable in my python code?
Closed this issue · 0 comments
x23piracy commented
Hi,
i changed the bot a lot for making a soccer management group (dates for playing and so on) i have a list that could be send by the bot when sending /liste and i need to sort it but i couldn't get to manage this i will always get errors:
here ist the code: http://pastebin.com/ue92R7K7
i need to sort the variable data before i return it, i tried .split() .splitlines() list(data) data.sort() and some other scary things but it will not work. Can anyone help please?
Variable data contains a string but when send it, it has line breaks that i don't enter myself this comes from reading the file content (look to the code), i am really bad in python and i think i need help.
Regards X23