Update DB.php

includes sort function