Trying to implement sort fog