package org.koitharu.kotatsu.core.ui.model

import androidx.annotation.StringRes
import org.koitharu.kotatsu.R
import org.koitharu.kotatsu.parsers.model.SortOrder

@get:StringRes
val SortOrder.titleRes: Int
	get() = when (this) {
		SortOrder.UPDATED -> R.string.updated
		SortOrder.POPULARITY -> R.string.popular
		SortOrder.RATING -> R.string.by_rating
		SortOrder.NEWEST -> R.string.newest
		SortOrder.ALPHABETICAL -> R.string.by_name
	}
