committing RGB sort