Regarding the Ukrainian alphabet, why do some put “ь” at the very end and some put it between “щ” and “ю”?

I'm no an expert of Ukrainian but, since the languages are close to each other, I'd dare...