Ord instance for BufferId.