nice sorting
merge mdref