sort-pictures: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/sort-pictures - from package: recoverjpeg

You may install the required package with command apt-get install {package}
Error in other languages:
sort-pictures: bevel nie gevind nie
sort-pictures: comandă negăsită
sort-pictures: comando não encontrado
sort-pictures: commande introuvable
sort-pictures: command not found
sort-pictures: käsku ei ole
sort-pictures: không tìm thấy lệnh
sort-pictures: komanda nerasta
sort-pictures: Kommando nicht gefunden.
sort-pictures: kommandot finns inte
sort-pictures: komut yok
sort-pictures: nie znaleziono polecenia
sort-pictures: níor aimsíodh an t-ordú
sort-pictures: no se encontró la orden
sort-pictures: no s'ha trobat l'ordre
sort-pictures: opdracht niet gevonden
sort-pictures: parancs nem található
sort-pictures: perintah tidak ditemukan
sort-pictures: príkaz nenájdený
sort-pictures: příkaz nenalezen
sort-pictures: команда не найдена
sort-pictures: командата не е открита
sort-pictures: 命令找不到
sort-pictures: コマンドが見つかりません