Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2 short lines solution in Clear category for Sort Except Zero by StefanPochmann
def except_zero(items):
s = filter(None, sorted(items))
return [x and next(s) for x in items]
April 29, 2023