# http://www.jepsennet.de/vdr/download/11_sortrecordings.dpatch diff -Nru vdr-1.5.13/recording.c vdr-1.5.13-sort-recordings/recording.c --- vdr-1.5.13/recording.c 2008-01-18 18:53:17.000000000 +0100 +++ vdr-1.5.13-sort-recordings/recording.c 2008-01-18 19:00:33.000000000 +0100 @@ -658,8 +658,8 @@ s1 = t; } t++; - } - if (s1 && s2) + } *s1 = 255; + if (s1 && s2 && s1 != s && !strchr(".-$ยช", *(s1 - 1))) memmove(s1 + 1, s2, t - s2 + 1); return s; } @@ -667,7 +667,7 @@ char *cRecording::SortName(void) const { if (!sortBuffer) { - char *s = StripEpisodeName(strdup(FileName() + strlen(VideoDirectory) + 1)); + char *s = StripEpisodeName(strdup(FileName() + strlen(VideoDirectory) )); strreplace(s, '/', 'a'); // some locales ignore '/' when sorting int l = strxfrm(NULL, s, 0) + 1; sortBuffer = MALLOC(char, l);