Fix bug where array was not sorted in place properly.
Not really sure why this was so messed up.
Add SDK to travis definition.