Book sorting machine used in libraries

Some libraries allow members to take the books home and return them after a week or more.
The books returned are given to the library staff, and new books are issued.
The library staff will then manually keep the book in place.
In some countries like Singapore, some libraries have book sorting machines.
These machines are sorting the library books which are returned, to make it easier to keep them in the right shelf.