# How is the GetPlayspace().GetPlayers() list sorted?

**URL:** <https://forums.unrealengine.com/t/how-is-the-getplayspace-getplayers-list-sorted/1276579>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 29, 2023, 2:40pm UTC](https://forums.unrealengine.com/t/how-is-the-getplayspace-getplayers-list-sorted/1276579 "2023-08-29T14:40:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarminSF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bkarminSF](https://forums.unrealengine.com/u/bkarminSF)\
**Post date:** [August 29, 2023, 2:40pm UTC](https://forums.unrealengine.com/t/how-is-the-getplayspace-getplayers-list-sorted/1276579/1 "2023-08-29T14:40:26Z")

</div>

Is it sorted by how long a player has been in the game? For example, if 4 people are in the game, and the player at index 0 leaves and rejoins, will that player now be at index 3, and the other players shifted forward?

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [August 29, 2023, 3:10pm UTC](https://forums.unrealengine.com/t/how-is-the-getplayspace-getplayers-list-sorted/1276579/2 "2023-08-29T15:10:28Z")

</div>

I have found it’s an associative array and as such, first in is 0 and they get shifted. So if player in slot 3 leaves, then player in slot 4 goes to 3 etc etc. I could be wrong, but not so far as I’ve seen.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 28, 2023, 3:11pm UTC](https://forums.unrealengine.com/t/how-is-the-getplayspace-getplayers-list-sorted/1276579/3 "2023-09-28T15:11:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
