Updated SDK to support sorting