Sort algorithm + logs related to interfaces