after a sort
Poorly, imperfectly, or without great care. I managed to fix my bike after a sort. It still sounds like it's about to fall apart, but at least it still moves!
after a sort
In a haphazard or imperfect way: managed to paint the chair after a sort.