fixed lowercase tag ordering