FYI..
Out of 2 rakes, one has exactly opposite coach composition of what is mentioned here.
Hence best advice to people boarding from small stations are stand in middle.
One rake has S1 in front(sleeper followed by ac), while for other S1 is in rear(ac followed by Sleeper)