<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="354429" data-post-id="354429">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jswanner" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jswanner/120/24585_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jswanner
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>In your <code>mount/3</code> callback I would set your default sort field and direction:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">assign(socket, sort_direction: :asc, sort_field: :some_field)
</code></pre>
<p>In the following callback:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def handle_event("sort_by_string", %{"field" =&gt; field}, socket) do
</code></pre>
<p>I would update the <code>sort_direction</code> and <code>sort_field</code> assigns, and use them to sort your list:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, sort_field) end, sort_direction)
</code></pre>
<p>Inside of your <code>handle_info/2</code> callback you would sort the new list in the same way, getting the sort field &amp; direction from the assigns</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354429" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-354429" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354429"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-solved cat-solved" title="Marked as solution"></div>
  </section>
</div>
    <div class="postbit" id="354432" data-post-id="354432">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wktdev" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/120/17649_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wktdev
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Excuse me if I am mistaken, but I am confused as to why <code>handle_info/2</code> is being mentioned. I don’t want the sorting of any user to affect the sorting of any other user. If a user sorts a column it should not be viewable by another user.</p>
<p>Apologies if I am not understanding your post.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354432" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-354432" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354432"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="354439" data-post-id="354439">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jswanner" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jswanner/120/24585_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jswanner
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="wktdev" data-post="13" data-topic="69031">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/48/17649_2.png" class="avatar"> wktdev:</div>
<blockquote>
<p>Excuse me if I am mistaken, but I am confused as to why <code>handle_info/2</code> is being mentioned.</p>
</blockquote>
</aside>
<p>To be clear: I’m referring to a <code>handle_info/2</code> callback in the LiveView.</p>
<aside class="quote no-group" data-username="wktdev" data-post="13" data-topic="69031">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/48/17649_2.png" class="avatar"> wktdev:</div>
<blockquote>
<p>If a user sorts a column it should not be viewable by another user.</p>
</blockquote>
</aside>
<p>I understand that, and I’m not suggesting you do that.</p>
<p>If I’m understanding your problem correctly, it’s not that someone’s sorting preference is being shared with others, but instead when someone changes a testbed everyone’s list of testbeds is being overwritten by a new list that is not sorted how they want it. And that’s because when someone changes a testbed, a message is broadcasted about that change, all the LiveViews are subscribed to that change, and in response to that change are overwriting their list of testbeds with a new (unsorted) list.</p>
<p>My suggestion is that in the <code>handle_info/2</code> callback responsible for responding to the PubSub broadcast you reapply each person’s desired sort order to the new list of testbeds. Keep in mind: that <code>handle_info/2</code> callback will be run in <em>each</em> LiveView process separately</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354439" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-354439" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354439"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="354441" data-post-id="354441">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jswanner" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jswanner/120/24585_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jswanner
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Also keep in mind: if you and I are each viewing the “same” LiveView, there are 2 separate processes running on the server, one for each of us. What happens in the process for your LiveView will not affect mine, and vice versa.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354441" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-354441" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354441"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="354507" data-post-id="354507">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wktdev" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/120/17649_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wktdev
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I attempted to try your suggestion and it didn’t change anything except create a red “we can’t find the internet” prompt at the top of the page.</p>
<p>This is a gist of the entire LiveView page:</p><aside class="onebox githubgist" data-onebox-src="https://gist.github.com/wktdev/405003a4940ff8bd65c9bb7257a2f0dc">
  <header class="source">

      <a href="https://gist.github.com/wktdev/405003a4940ff8bd65c9bb7257a2f0dc" target="_blank" rel="noopener nofollow ugc">gist.github.com</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://gist.github.com/wktdev/405003a4940ff8bd65c9bb7257a2f0dc" target="_blank" rel="noopener nofollow ugc">https://gist.github.com/wktdev/405003a4940ff8bd65c9bb7257a2f0dc</a></h4>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>Here is step by step how I attempted to follow your instructions:</p>
<blockquote>
<ol>
<li>In your <code>mount/3</code> callback I would set your default sort field and direction:</li>
</ol>
</blockquote>
<p><strong>This is the code I changed/used</strong></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def mount(_params, _session, socket) do
    TestBeds.subscribe()
    Alerts.subscribe()

    {:ok,
     assign(socket,
       testbeds: TestBeds.list_testbeds(),
       sort_direction: false,               # Here
       sort_field: :name,                   # Here 
       alerts: Alerts.list_alerts(),
       developer: "None",
        name_warning: ""
     )}
  end
</code></pre>
<blockquote>
<ol start="2">
<li>
<pre data-code-wrap="elixir"><code class="lang-elixir"></code></pre>
</li>
</ol>
<p>def handle_event(“sort_by_string”, %{“field” =&gt; field}, socket) do</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">
I would update the `sort_direction` and `sort_field` assigns, and use them to sort your list:
</code></pre>
</blockquote>
<p><strong>This is the code I changed/used</strong></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def sort_by(socket, field) do
    atomParam = String.to_existing_atom(field)

    if socket.assigns[:sort_direction] == false do
      sorted_testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, atomParam) end)
      {:noreply, assign(socket, testbeds: sorted_testbeds, sort_direction: true, sort_field: atomParam)}
    else
      sorted_testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, atomParam) end)
      |&gt; Enum.reverse()
      {:noreply, assign(socket, testbeds: sorted_testbeds, sort_direction: false, sort_field: atomParam)}
    end
  end


  def handle_event("sort_by_string", %{"field" =&gt; field}, socket) do
    sort_by(socket, field)
  end
</code></pre>
<blockquote>
<ol start="3">
<li>Inside of your <code>handle_info/2</code> callback you would sort the new list in the same way, getting the sort field &amp; direction from the assigns</li>
</ol>
</blockquote>
<p><strong>This is the code I changed/used</strong></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def handle_info({TestBeds, [:testbed | _], _}, socket) do
    testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, socket.assigns.sort_field) end, socket.assigns.sort_direction)
    {:noreply, assign(socket, testbeds: testbeds)}
  end
</code></pre>
<p>I get this error:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">
[error] GenServer #PID&lt;0.2240.0&gt; terminating
** (UndefinedFunctionError) function false.compare/2 is undefined (module false is not available)
    false.compare("Bill", "SAC")
    (elixir 1.17.3) lib/list.ex:511: anonymous fn/4 in List.keysort_fun/2
    (stdlib 5.2.3.1) lists.erl:1210: :lists.sort/2
    (elixir 1.17.3) lib/enum.ex:3349: Enum.sort_by/3
    (app 0.1.0) lib/app_web/live/page_live.ex:75: AppWeb.PageLive.handle_info/2
    (phoenix_live_view 0.18.18) lib/phoenix_live_view/channel.ex:276: Phoenix.LiveView.Channel.handle_info/2
    (stdlib 5.2.3.1) gen_server.erl:1095: :gen_server.try_handle_info/3
    (stdlib 5.2.3.1) gen_server.erl:1183: :gen_server.handle_msg/6
    (stdlib 5.2.3.1) proc_lib.erl:251: :proc_lib.wake_up/3
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354507" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-354507" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354507"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="354518" data-post-id="354518">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jswanner" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jswanner/120/24585_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jswanner
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="wktdev" data-post="16" data-topic="69031">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/48/17649_2.png" class="avatar"> wktdev:</div>
<blockquote>
<pre data-code-wrap="elixir"><code class="lang-elixir">** (UndefinedFunctionError) function false.compare/2 is undefined (module false is not available)
    false.compare("Bill", "SAC")
</code></pre>
</blockquote>
</aside>
<p>You are passing <code>false</code> as the second argument to <code>sort_by</code>. Embedded in my suggestion but not called out explicitly was to pass <code>:asc</code>/<code>:desc</code> as the second argument (and storing that as the sort direction), instead of conditionally using <code>Enum.reverse</code></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354518" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-354518" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354518"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="354526" data-post-id="354526">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wktdev" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/120/17649_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wktdev
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I updated the code. Now when I click the Available button, it opens the modal but does not change to “taken” when submitted. Instead, the user needs to refresh to see the value has changed.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">
  def mount(_params, _session, socket) do
    TestBeds.subscribe()
    Alerts.subscribe()

    {:ok,
     assign(socket,
       testbeds: TestBeds.list_testbeds(),
       sort_direction: :asc,               # Here
       sort_field: :name,                   # Here
       alerts: Alerts.list_alerts(),
       developer: "None",
        name_warning: ""
     )}
  end
</code></pre>
<pre data-code-wrap="elixir"><code class="lang-elixir">def handle_info({TestBeds, [:testbed | _], _}, socket) do
  # IO.inspect("_______________SOCKET")
  testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, socket.assigns.sort_field) end, socket.assigns.sort_direction)

  {:noreply, assign(socket, testbeds: testbeds)}
end
</code></pre>
<pre data-code-wrap="elixir"><code class="lang-elixir">
  def sort_by(socket, field) do
    atomParam = String.to_existing_atom(field)

    if socket.assigns[:sort_direction] == :desc do
      sorted_testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, atomParam) end)
      {:noreply, assign(socket, testbeds: sorted_testbeds, sort_direction: :asc, sort_field: atomParam)}
    else
      sorted_testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, atomParam) end)
      |&gt; Enum.reverse()
      {:noreply, assign(socket, testbeds: sorted_testbeds, sort_direction: :desc, sort_field: atomParam)}
    end
  end


  def handle_event("sort_by_string", %{"field" =&gt; field}, socket) do
    sort_by(socket, field)
  end
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354526" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-354526" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354526"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="354528" data-post-id="354528">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wktdev" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/120/17649_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wktdev
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Wait, I think this change might have fixed it:</p>
<p><strong>I changed your code from this:</strong></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">testbeds = Enum.sort_by(socket.assigns.testbeds, fn item -&gt; Map.get(item, sort_field) end, sort_direction)
</code></pre>
<p><strong>To this</strong></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">
def handle_info({TestBeds, [:testbed | _], _}, socket) do
  # IO.inspect("_______________SOCKET")
  testbeds = Enum.sort_by(TestBeds.list_testbeds(), fn item -&gt; Map.get(item, socket.assigns.sort_field) end, socket.assigns.sort_direction)

  {:noreply, assign(socket, testbeds: testbeds)}
end
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354528" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-354528" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354528"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #18"></div>
  </section>
</div>
    <div class="postbit" id="354529" data-post-id="354529">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jswanner" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jswanner/120/24585_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jswanner
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Right, in your previous post you were not fetching the updated testbed in response to the PubSub message</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354529" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-354529" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354529"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="354530" data-post-id="354530">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jswanner" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jswanner/120/24585_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jswanner
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Glad you figured it out!</p>
<aside class="quote no-group" data-username="wktdev" data-post="19" data-topic="69031">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wktdev/48/17649_2.png" class="avatar"> wktdev:</div>
<blockquote>
<p>I changed your code from this:</p>
</blockquote>
</aside>
<p>To be clear, that was my suggestion for your <code>handle_event</code> callback. Again, glad you got it working</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="354530" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/sorting-problem-phoenix-liveview-juggles-pub-sub-and-render-medium-difficulty/69031/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-354530" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="354530"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #20"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/69031/load_more?page=3">Load more posts (11 remaining)</a>
</div></template></turbo-stream>