extracted visible mixin plus various attempts to get jquery sorting working