SortByReceive completed

Also MapWindow changes.