Here you go, sort domains via backlinks, in one line of code:
Save the urls and backlink numbers in a file called "domains.txt" with a tuple format, like this:
[
('domain5.com', 10),
('domain1.com', 50),
('domain2.com', 40),
('domain3.com', 30),
]
Down python...