added type option for sort term
added start/endSelect and startDrag methods (e.g. for toggling CSS classes)
toggle CSS classes on start/endSelect and drag