Added sorting. Avoid duplicated titles (on same device).