<s> import re <EOL> from django import template <EOL> from django . utils . safestring import mark_safe <EOL> register = template . Library ( ) <EOL> @ register . filter <EOL> def checkbox_first ( value ) : <EOL> new = re . sub ( r'<STR_LIT>' , <EOL> '<STR_LIT>' , value ) <EOL> new = re . sub ( r'<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , new ) <EOL> return mark_safe ( new ) </s>
