1
votes

Say I have 4 equations.

a = 1+2
b = 1+3
c = 1+1
d = 1-3

How do I go about sorting the results from smallest to biggest?

Usually sorting is applied to some sort of collection, like list or array. - PM 77-1
a,b,c,d = sorted([a,b,c,d]) - lejlot
Right. If you have a set of results, that set should always be in a list, not in individual variables. Tomorrow, you will no doubt need 5 results instead of 4, and now you have to rewrite things. - Tim Roberts