#718928 by rooby - Fix bug intrduced in previous commit. Call to undefined mothod when using table click sorting on distance/proximity field.