mediaTypePriority not sorting correctly because it's using the wrong object to sort