adding testcases for sorting
db script change