implement-ed sorted writeback (but buggy)

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
fix: sorted writeback

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>