MathWorks Interview Question

Most efficient way to sort the frequency of a certain error code in file logs.