he lay in his hospital bed smiling , trying to remember , conjuring victims and villains alike , cataloguing the cases by their key characteristics , then arranging them alphabetically to achieve some semblance of order , smiling as he worked it through , pleased with what a smart detective he was , even though he 'd got himself shot - until he lost his place and had to start all over again .