ed08724 6 Posted November 8, 2018 Report Share Posted November 8, 2018 in Ubot Studio X I want to sort a list but the resulting list is ending up in scientific notation add list to list(%sorted,$sort list(%myposts,"Descending"),"Delete","Global") %myposts1015623801993453110156239823899531101562405309695311015623884840953110156236482544531101567600257040311015623510573953110156233189979531101562327204195311015623217532453110156230650744531 %sorted1.0156760025704E+161.01562405309695E+161.01562398238995E+161.01562388484095E+161.01562380199345E+161.01562364825445E+161.01562351057395E+161.01562331899795E+161.01562327204195E+161.01562321753245E+161.01562306507445E+16 How can't I prevent that? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 8, 2018 Report Share Posted November 8, 2018 I would look into using Python maybe to do it inside of Ubot it would probably be the only way without using some kind of plugin. Quote Link to post Share on other sites
ed08724 6 Posted November 8, 2018 Author Report Share Posted November 8, 2018 I added a z in the front of each list itemsorted the listthen removed the z in the front of each list element. 1 Quote Link to post Share on other sites
UBotBuddy 331 Posted November 9, 2018 Report Share Posted November 9, 2018 @ed08724 and I had the same idea Here's my code: clear list(%myposts) clear list(%sorted) add list to list(%myposts,$list from text("10156230650744531Q 10156232175324531Q 10156232720419531Q 10156233189979531Q 10156235105739531Q 10156236482544531Q 10156238019934531Q 10156238848409531Q 10156239823899531Q 10156240530969531Q 10156760025704031Q"," "),"Delete","Global") set(#var,$replace($sort list(%myposts,"Descending"),"Q",$nothing),"Global") add list to list(%sorted,$list from text(#var," "),"Delete","Global") Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.