supporting sorting of assets correctly