generic jquery sorting module for coscms