Update api.php

Fix and update to SKSort.