Add test for sorting by non-existent key

@pbadenski
@robyoung