@register.filter
def volsort(l):
 if (not l):
  return
 for x in l:
  if x.get('class_'):
   (yield x)
 for x in l:
  if (not x.get('class_')):
   (yield x)

@ register . filter def volsort ( l ) : if ( not l ) : return for x in l : if x . get ( 'class_' ) : ( yield x ) for x in l : if ( not x . get ( 'class_' ) ) : ( yield x )
sort baselined volatility results .