I always liked the visual appeal that I feel when looking at pixel sorting effects. In this exploration, I wanted to have an effect sorting the pixels of an input in real time, in different possible directions. In that regard, I designed an algorithm that can accept a sort filter that dictates the direction in which the sort happens.

I described this technique in an article, source code is also available in the article.