Ignore case on sort

Signed-off-by: Laura Hausmann <laura@hausmann.dev>
This commit is contained in:
Laura Hausmann 2022-09-03 20:13:50 +02:00
parent 2ebfd26334
commit b366396039
Signed by: zotan
GPG Key ID: D044E84C5BE01605
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
</tr>
</thead>
<tbody>
@foreach (var movie in new Database.DbConn().Movies.Where(p => p.UserId == Model.AuthorizedUser.UserId).OrderBy(p => p.Title)) {
@foreach (var movie in new Database.DbConn().Movies.Where(p => p.UserId == Model.AuthorizedUser.UserId).OrderBy(p => p.Title.ToLower())) {
<tr>
<td>
<b>@movie.Title</b>

View File

@ -27,7 +27,7 @@
</tr>
</thead>
<tbody>
@foreach (var show in new Database.DbConn().Shows.Where(p => p.UserId == Model.AuthorizedUser.UserId).OrderBy(p => p.Title)) {
@foreach (var show in new Database.DbConn().Shows.Where(p => p.UserId == Model.AuthorizedUser.UserId).OrderBy(p => p.Title.ToLower())) {
<tr>
<td>
<b>@show.Title</b>