sort() should not throw ArrayIndexOutOfBounds on empty array

this is allowed by the API... just `return` if the first arg is zero. 
Apparently, this is *required* for `ListContainer` to work with the new `Grid`! Otherwise it will crash on startup.