Added Sorting
database merge(useless)