Yes, you're on the right track — MySQL can only use an index for both filtering and sorting when the "ORDER BY" columns match the index's leftmost prefix and order.