Utility for last failure first

#7