make_sortable_title

Function make_sortable_title 

Source
pub fn make_sortable_title(title: &str) -> String
Expand description

Convert a media title to be sortable and searchable

use flix_model::text::make_sortable_title;

assert_eq!(make_sortable_title("The Matrix"), "matrix, the");
assert_eq!(make_sortable_title("Marvel's Agents of S.H.I.E.L.D."), "marvels agents of shield");
assert_eq!(make_sortable_title("Avatar: The Last Airbender"), "avatar the last airbender");

ยงPanics

Panics if input is not ASCII.