When assigning patients to a specific room and then adding the position to the table in order to show patients sorted according to the rooms they are in, the sorting only takes the bed number as input, i.e. ignores the room.
reproduce: assign patients to ward - room - bed. Go to table and add Position as a column - Sort based on "position".