Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update sort order #101

Merged
merged 1 commit into from
Nov 17, 2021
Merged

fix: update sort order #101

merged 1 commit into from
Nov 17, 2021

Conversation

gabaldon
Copy link
Collaborator

No description provided.

@@ -0,0 +1,17 @@
export function sortByNetwork(array) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function sortByNetwork(array) {
export function sortByNetwork(feeds) {

@@ -0,0 +1,17 @@
export function sortByNetwork(array) {
return array.sort((a, b) => {
Copy link
Member

@Tommytrg Tommytrg Nov 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return array.sort((a, b) => {
return feeds.sort((firstFeed, secondFeed => {

return 2
}
})
const result = this.feeds.feeds.map((feed) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const result = this.feeds.feeds.map((feed) => {
const allFeeds = this.feeds.feeds.map((feed) => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants