jQuery serialize error

TypeError: Object function sort() { [native code] } has no method 'getContent'
which happens under some circumstances when using eg. jquery serialize() function