Additions for dirty tag sorting